package com.hiwhitley.himei.network.service;

import com.hiwhitley.himei.entity.Benefit;
import com.hiwhitley.himei.entity.GankDay;

import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Path;
import rx.Observable;

/**
 * Created by hiwhitley on 2016/9/22.
 */

public interface GankService {

    @GET("data/福利/10/{page}")
    Observable<Benefit> getBenefit(@Path("page") int page);

    @Headers("Cache-Control: public, max-age=3600")
    @GET("day/{year}/{month}/{day}")
    Observable<GankDay> getGankDay(@Path("year") int year, @Path("month") int month, @Path("day") int day);
}
